package com.microservices.yucloud.gateway.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zy
 * @date 2020/11/2 9:33 下午
 * @desc 描述
 **/
@Slf4j
@RestController("/ratelimiter")
public class GatewayLimiter {

    @GetMapping("/test")
    public String test1(@RequestParam String key) {
        log.info("API gateway test:{}",key);
        return "ok";
    }
}
